
<template>
  <div class="center">

     <div class="down">
      <div class="ranking bg-color-black">
        <span>
          <i class="iconfont icon-tongji2"></i>
        </span>
        <span class="fs-xl text mx-2 mb-1">近20分钟繁忙排行</span>
        <dv-scroll-ranking-board class="dv-scr-rank-board" :config="config"/>
      </div>
    </div>
  </div>
</template>

<script>
//import {parkSum} from "@/api/api";
import axios from "axios";
export default ({
  components: {
    //Chart
  },
  mounted() {
    axios.get(this.$route.params.url+'dataView/parkingLotBerth/replacementRate').then(res=>{
          this.config.data = res.data;
          this.config.data = this.config.data.map(item => ({
            name: item.park_name,
            value: item.replacementRate
          }))
          this.config = { ...this.config }
        });
  },
  methods: {},
  data() {
     return {
      config: {
        data:[],
        columnWidth:[90],
        carousel: "single",
        unit: "%",
        rowNum:5,
      },

    }
  },

})
</script>

<style lang="scss" scoped>
.center {
  display: flex;
  flex-direction: column;
  .up {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      border-radius: 6px;
      padding-top: 8px;
      margin-top: 8px;
      width: 32%;
      height: 70px;
      .dv-dig-flop {
        width: 150px;
        height: 30px;
      }
    }
  }
  .down {
    padding: 6px 4px;
    padding-bottom: 0;
    width: 800px;
    margin-left: 10px;
    margin-top: 10px;
    display: flex;
    height: 255px;
    justify-content: space-between;
    .bg-color-black {
      border-radius: 5px;
    }
    .ranking {
      padding: 10px;
      width: 59%;
      .dv-scr-rank-board {
        height: 220px;
      }
    }
    .percent {
      width: 40%;
      display: flex;
      flex-wrap: wrap;
      .item {
        width: 50%;
        height: 120px;
        span {
          margin-top: 8px;
          font-size: 14px;
          display: flex;
          justify-content: center;
        }
      }
      .water {
        width: 100%;
        .dv-wa-le-po {
          height: 120px;
        }
      }
    }
  }
}
</style>
